/*
 * @Descripttion:
 * @version:
 * @Author: ChenXiang
 * @Date: 2021-03-24 13:09:13
 * @LastEditors: ChenXiang
 * @LastEditTime: 2021-03-24 13:26:36
 */
// import { createStore, applyMiddleware, compose } from 'redux';
// import createSagaMiddleware from 'redux-saga';
// import rootSaga from './sagas';
// import rootReducer from './reducers';
// const sagaMiddleware = createSagaMiddleware();

// let store: any = null;
// if (process.env.NODE_ENV === 'development') {
//   const composeEnhancers =
//     window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
//   store = createStore(
//     rootReducer,
//     composeEnhancers(applyMiddleware(sagaMiddleware))
//   );
// } else {
//   store = createStore(rootReducer, applyMiddleware(sagaMiddleware));
// }

// sagaMiddleware.run(rootSaga);
// export default store;
